<template>
  <CustomDialog ref="dialogRef" :verifyTabledata="verifyTable" />
  <el-button @click="handleOpen">点击打开弹窗</el-button>
  <RewardFilter />
</template>

<script setup>
import { ref } from 'vue'
import CustomDialog  from './components/CustomDialog.vue'
import RewardFilter from './components/RewardFilter.vue'

const res = ref([
  { id: 1, name: '数据组1', value: '示例值1' },
  { id: 2, name: '数据组2', value: '示例值2' },
  { id: 3, name: '数据组3', value: '示例值3' }
])
const verifyTable = ref([])
const dialogRef = ref(null)

const handleOpen = () => {
  // 调用子组件暴露的方法
  verifyTable.value=res.value
  dialogRef.value.openDialog()
}
</script>
